<ion-view title="登陆">
    <ion-content overflow-scroll="true"  padding="true" class="has-header">
        <form class="list" name="form" ng-submit="submit()" novalidate>
            <ion-list>
                <label class="item item-input" name="username">
                    <span class="input-label">用户名</span>
                    <input type="text" placeholder="请输入用户名" bsy-form-validate="userNameErrorTips"   ng-model="user.loginName" required>
                </label>


                <label class="item item-input" name="password">
                    <span class="input-label">密 码</span>
                    <input type="password" placeholder="请输入密码" ng-model="user.password" bsy-form-validate="passwordErrorTips" required>
                </label>
                <ion-checkbox ng-model="user.autoLogin" ng-checked="user.autoLogin">下次自动登陆</ion-checkbox>

            </ion-list>
            <div class="spacer" style="height: 40px;"></div>
            <button class="button button-positive button-block " check-form >登陆</button>
          <a  ui-sref="signUp" class="button button-positive button-clear button-block ">注册账号</a>
        </form>
    </ion-content>
</ion-view>
